<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title><#:C('sitename')#>-管理后台</title>
	<include file="Pub:style"/>
	<!-- libraries -->
    <link href="<#$Theme['P']['root']#>/bootadmin/css/compiled/tables.css" type="text/css" rel="stylesheet"  />
</head>
<body>

<include file="Pub:Nav"/>
   <include file="Pub:Sidebar"/>
	<!-- main container -->
    <div class="content" style="height: 100%;">
      <div id="pad-wrapper">
          <!-- orders table -->
            <div class="table-wrapper orders-table section">
                <div class="row head">
                    <div class="col-md-12">
                        <h4>广告列表</h4>
                    </div>
                </div>
                <div class="row filter-block">
                    <div class="pull-right"></div>
                </div>
                <div class="">
                    <table class="table table-hover">
                        <thead>
                            <tr>
                                <th class="col-md-1">
                                   	编号
                                </th>
                                <th class="col-md-2">
                                    <span class="line"></span>
                                   	添加日期
                                </th>
                                <th class="col-md-1">
                                    <span class="line"></span>
                                   		图片信息
                                </th>
                                <th class="col-md-2">
                                    <span class="line"></span>
                                   		投放时间
                                </th> 
                                <th class="col-md-2">
                                    <span class="line"></span>
                                   		代理商
                                </th>
                                <th class="col-md-2">
                                    <span class="line"></span>
                                    行业分类
                                </th>
                                <th class="col-md-2">
                                    <span class="line"></span>
                                   		 排序
                                </th>
                                <th class="col-md-1">
                                    <span class="line"></span>
                                    		操作
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                        	<volist name="lists" id="vo">
                        		<!-- row -->
                                <tr class="<eq name="i" value="1">first</eq>">
                                    <td><#$i#></td>
                                    <td><#$vo.add_time|date='Y-m-d ',####></td>
                                    <td><img src="<#$vo.pic#>" class="thumb"  style="width:100px;"></td>
                                    <td><#$vo.startdate|date='Y-m-d ',####>到<#$vo.enddate|date='Y-m-d ',####></td>
                                    <td>
                                        <if condition="$vo['aid'] gt 0"><#$vo.agentname#><else/>平台广告</if>
                                    </td>
                                    <td>
                                        <if condition="$vo['trade'] eq 0 ">未选择
                                            <else/> <?php echo($trade[$vo['trade']-1][txt]); ?>
                                        </if>
                                    </td>
                                    <td><#$vo.sort#></td>
                                    <td>
                                       <a href="<#:U('edit',array('id'=>$vo['id']))#>">编辑</a>|
                                       <a href="<#:U('del',array('id'=>$vo['id']))#>">删除</a>
                                    </td>
                                </tr>
                        	</volist>
                        </tbody>
                    </table>
                </div>
            	<div class="pagination pull-right"><#$page#></div>
            </div>
            <!-- end orders table -->
          </div>
    </div>
	<!-- scripts -->
    <script src="<#$Theme['P']['js']#>/jquery.js"></script>
    <script src="<#$Theme['P']['root']#>/bootadmin/js/bootstrap.min.js"></script>
    <script src="<#$Theme['P']['root']#>/bootadmin/js/theme.js"></script>
    <script src="<#$Theme['P']['root']#>/bootadmin/js/common.js"></script>
</body>
</html>